<template>
  首页
  <h2>欢迎登录，{{ user.username }}</h2>
</template>

<script setup>
import { useUserStore } from "@/store/user.js";

const userStore = useUserStore();

const user = userStore.user;
</script>
